package com.telit.android.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * app_task_feedback
 * @author 
 */
@ApiModel(value = "AppTaskFeedback")
@Data
public class AppTaskFeedback implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value="id")
    @TableId(type= IdType.AUTO)
    private Long id;

    /**
     * 任务id
     */
    @ApiModelProperty(value="任务id")
    @NotNull(message = "任务表id不能为空")
    private Long taskId;

    /**
     * 反馈人id
     */
    @ApiModelProperty(value="反馈人id")
    @NotNull(message = "反馈人id不能为空")
    private Long feedbackPersonId;

    /**
     * 反馈人姓名
     */
    @ApiModelProperty(value="反馈人姓名")
    @NotBlank(message = "反馈人姓名不能为空")
    private String feedbackPersonName;

    /**
     * 反馈内容
     */
    @ApiModelProperty(value="反馈内容")
    private String content;

    /**
     * 火情类型 0虚假火情 1真实火情
     */
    @ApiModelProperty(value="火情类型 0虚假火情 1真实火情")
    private Integer fireType;

    /**
     * 反馈时间
     */
    @ApiModelProperty(value="反馈时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date feedbackTime;

    /**
     * 多媒体url
     */
    @ApiModelProperty(value = "多媒体url")
    private String mediaUrl;

    @Ignore
    @ApiModelProperty(value = "多媒体list")
    private List<String> mediaList;

    @Ignore
    @ApiModelProperty(value = "imgList")
    private List<String> imgList;

    @Ignore
    @ApiModelProperty(value = "audioList")
    private List<String> audioList;

    @Ignore
    @ApiModelProperty(value = "videoList")
    private List<String> videoList;

    private static final long serialVersionUID = 1L;

}